<script type="text/javascript">
	jQuery(document).ready(function(){
    	jQuery("#form1").validationEngine();
   });
</script>
<form id="form1" name="form1" method="post" action="<?php echo $do_addedit_link;?>" enctype="multipart/form-data">
  <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td align="left" class="block-block"><?php echo $action?> Gamevariant</td>
    </tr>
    <tr>
      <td class="border_add"><table width="90%" border="0" align="left" cellpadding="4" cellspacing="4">
          <tr>
            <td width="22%" align="right" valign="middle" nowrap="nowrap"><span class="error">*</span>Select Game</td>
            <td width="3%" align="center" valign="middle">:</td>
            <td width="75%" colspan="2">
		<select name="game_id">
		<?php for($i=0;$i<count($game);$i++){ ?>
		<option value="<?php echo $game[$i]['id']; ?>"><?php echo $game[$i]['game_name']; ?></option>
		<?php } ?>
		</select>
		
	    </td>
          </tr>
	  <tr>
            <td width="22%" align="right" valign="middle" nowrap="nowrap"><span class="error">*</span>Title</td>
            <td width="3%" align="center" valign="middle">:</td>
            <td width="75%" colspan="2">
		
		<input type="text" name="title" id="title" class="validate[required] textbox" style="width:450px;" value="<?php echo $title;?>" maxlength="100" >
		
	    </td>
          </tr>
	  <tr>
            <td width="22%" align="right" valign="middle" nowrap="nowrap"><span class="error">*</span>Maximum Player</td>
            <td width="3%" align="center" valign="middle">:</td>
            <td width="75%" colspan="2">
		<input type="text" name="max_player" id="max_player" class="validate[required,custom[onlyNumberSp]] text-input" style="width:450px;" value="<?php echo $max_player;?>" maxlength="100" >
		
		
	    </td>
          </tr>
	  <tr>
            <td width="22%" align="right" valign="middle" nowrap="nowrap"><span class="error">*</span>Minimum Player</td>
            <td width="3%" align="center" valign="middle">:</td>
            <td width="75%" colspan="2">
		<input type="text" name="min_player" id="min_player" class="validate[required,custom[onlyNumberSp]] text-input" style="width:450px;" value="<?php echo $min_player ;?>" maxlength="100" >
		
	    </td>
          </tr>
			 
          <tr>
            <td align="right" valign="middle">&nbsp;</td>
            <td align="center" valign="middle">&nbsp;</td>
            <td colspan="2"><input type="submit" name="Submit" value=" Submit " onmouseover="this.className='normal-bttn1'" onmouseout="this.className='normal-bttn'" class="normal-bttn" />
              &nbsp;&nbsp;
              <input name="Submit2" type="button" value="Cancel" onmouseover="this.className='normal-bttn1'" onmouseout="this.className='normal-bttn'" class="normal-bttn" onclick="location.href='<?php echo $back_link?>'"></td>
          </tr>

          <tr>
            <td align="right" valign="middle">&nbsp;</td>
            <td align="center" valign="middle">&nbsp;</td>
            <td colspan="2">&nbsp;</td>
          </tr>
        </table></td>
    </tr>
  </table>
</form>
